-
Notifications
You must be signed in to change notification settings - Fork 557
[Torch] Add support for aten.round.decimals op #4166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some comments:
1.) The PR title was incorrect. It said [TORCH] Add support for aten.reduce.decimals op
while the op added is aten.round.decimals
op. Also, it says that the support is added but only a folder is added.
2.) The shape and dtype has not been added. Please do that.
3.) Add the lowering for the op which lowers to Linalg.
4.) Add an e2e test for the op.
bc8dad7
to
48005db
Compare
@vivekkhandelwal1 Thanks a lot for the feedback. I have updated the PR as suggested. Please have a look |
f460ca2
to
fbc9352
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would happen if the decimals value is zero?
fbc9352
to
4fd12bc
Compare
@vivekkhandelwal1 If the decimal part is zero, this will return |
@vivekkhandelwal1 Please have a look |
4fd12bc
to
73c56dd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
73c56dd
to
6f7bf55
Compare
* Added decomposition to aten.round * Added test to projects/pt1/python/torch_mlir_e2e_test/test_suite/elementwise.py
6f7bf55
to
f83d7c6
Compare
@vivekkhandelwal1 Please merge this PR. |
Uh oh!
There was an error while loading. Please reload this page.